<?php
function smarty_function_browse_experience_select($params, &$smarty) {
	
	if( !isset( $params["selected_experience_id"] )) {
		$params["selected_experience_id"] = 0;
	}
	$select = SilkForm::create_input_select(array("name" => "experience_id"));
	
	$items = array();
	$items[0] = "Select Experience";
	foreach( $params["experiences"] as $key => $experience ) {
		$items[$key] = $experience;
	}

	$select .= SilkForm::create_input_options(array("items" => $items, "selected_value" => $params["selected_experience_id"]));
	$select .= SilkForm::create_end_tag("select");
	return $select;
}


?>